package service.Impl;

import dao.Impl.UserRepositoryImpl;
import dao.UserRepository;
import entity.User;
import service.LoginService;


public class LoginServiceImpl implements LoginService {
    /**
     * 调用的Repository对象
     */
    private UserRepository userRepository = new UserRepositoryImpl();
    /**
     * 登录
     *
     * @param username 用户名
     * @param password 密码
     * @return User对象
     */
    @Override
    public User login(String username, String password) {
        return userRepository.login(username, password);
    }
}
